import http from "./http";

export default {
  // 分页获取房屋信息
  getRoomPage(params) {
    return http.post("/room/getRoomPage", params);
  },
  // 添加房屋信息
  addRoom(params) {
    return http.post("/room/addRoom", params);
  },
  // id获取房屋信息
  getRoomById(params) {
    return http.get("/room/getRoomById", { params });
  },
  //   修改房屋信息
  editRoom(params) {
    return http.put("/room/updateRoom", params);
  },
  //   删除房屋信息
  deleteRoom(params) {
    return http.delete("/room/deleteRoom", { params });
  }
};
